Carbon


EqualRgn

Header: Quickdraw.h Carbon status: Supported

Determines whether two regions have identical sizes, shapes, and locations.

Boolean EqualRgn (
     rgnA, 
     rgnB
);
Parameter descriptions
rgnA

A handle to the first of two regions to compare.

rgnB

A handle to the second of two regions to compare.

function result

TRUE if the two regions are equal; FALSE if they are not. The two regions must have identical sizes, shapes, and locations to be considered equal. Any two empty regions are always equal.

DISCUSSION

The EqualRgn function compares the two regions whose handles you pass in the rgnA and rgnB parameters and returns TRUE if they’re equal or FALSE if they’re not.

The two regions must have identical sizes, shapes, and locations to be considered equal. Any two empty regions are always equal.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)